package teach.aistar.model.entity;

import java.util.Date;

public class Notice {
    private Long id;

    private Date noticeTime;

    private String noticeText;

    private Integer noticeStatus;

    private Integer userId;

    private Integer noticeType;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getNoticeTime() {
        return noticeTime;
    }

    public void setNoticeTime(Date noticeTime) {
        this.noticeTime = noticeTime;
    }

    public String getNoticeText() {
        return noticeText;
    }

    public void setNoticeText(String noticeText) {
        this.noticeText = noticeText == null ? null : noticeText.trim();
    }

    public Integer getNoticeStatus() {
        return noticeStatus;
    }

    public void setNoticeStatus(Integer noticeStatus) {
        this.noticeStatus = noticeStatus;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getNoticeType() {
        return noticeType;
    }

    public void setNoticeType(Integer noticeType) {
        this.noticeType = noticeType;
    }

    public Notice() {
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("Notice{");
        sb.append("id=").append(id);
        sb.append(", noticeTime=").append(noticeTime);
        sb.append(", noticeText='").append(noticeText).append('\'');
        sb.append(", noticeStatus=").append(noticeStatus);
        sb.append(", userId=").append(userId);
        sb.append(", noticeType=").append(noticeType);
        sb.append('}');
        return sb.toString();
    }
}